projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aa6c45
)
T4240: Address T4240/T4160 Rev2.0 DDR clock change
author
Zang Roy-R61911
<
[email protected]
>
Thu, 28 Nov 2013 05:23:37 +0000
(13:23 +0800)
committer
York Sun
<
[email protected]
>
Wed, 4 Dec 2013 22:54:42 +0000
(14:54 -0800)
MEM_PLL_RAT on T4240/T4160 Rev2.0 uses a value which is half of Rev1.0.
It's 12 in Rev1.0, for Rev2.0 it uses 6.
Signed-off-by: Roy Zang <
[email protected]
>
Signed-off-by: Shaohui Xie <
[email protected]
>
Acked-by: York Sun <
[email protected]
>
arch/powerpc/cpu/mpc85xx/speed.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/mpc85xx/speed.c
b/arch/powerpc/cpu/mpc85xx/speed.c
index 1a58a194f99c6fd1ea2be9046ccbc37aa1549185..46ae80c4d819b244de758d60a28a09cd6095d4a5 100644
(file)
--- a/
arch/powerpc/cpu/mpc85xx/speed.c
+++ b/
arch/powerpc/cpu/mpc85xx/speed.c
@@
-86,6
+86,14
@@
void get_sys_info(sys_info_t *sys_info)
mem_pll_rat = (in_be32(&gur->rcwsr[0]) >>
FSL_CORENET_RCWSR0_MEM_PLL_RAT_SHIFT)
& FSL_CORENET_RCWSR0_MEM_PLL_RAT_MASK;
+ /* T4240/T4160 Rev2.0 MEM_PLL_RAT uses a value which is half of
+ * T4240/T4160 Rev1.0. eg. It's 12 in Rev1.0, however, for Rev2.0
+ * it uses 6.
+ */
+#if defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160)
+ if (SVR_MAJ(get_svr()) >= 2)
+ mem_pll_rat *= 2;
+#endif
if (mem_pll_rat > 2)
sys_info->freq_ddrbus *= mem_pll_rat;
else